/*
	In this challenge, given the name of a file, print out the size of the file, in bytes.
	If no file is given, provide a help string to the user that indicates how to use the program.
*/
#include <iostream>
#include <fstream>

using namespace std;

void Help() {
	cout << "Usage: 2_fsize <file_name>" << endl;
}

int main( int argc, char* argv[] ){

	if (argc < 2){
		Help();
		return 0;
	}

	
	ifstream InFile(argv[1], ios::ate);

//	InFile.open();

	if (InFile.is_open())
		cout << "Je otvoreny" << endl;

	cout << InFile.tellg() << endl;


//	InFile.close();

return 0;
}
